package com.ruoyi.web.controller.equip;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.SelectEntity;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.equip.domain.DeviceInfo;
import com.ruoyi.equip.domain.ProbeData;
import com.ruoyi.equip.domain.entity.table.ExportParam;
import com.ruoyi.equip.domain.vo.DeviceInfoVO;
import com.ruoyi.equip.domain.vo.ProbeDataVo;
import com.ruoyi.equip.domain.vo.TagVo;
import com.ruoyi.equip.service.IDeviceInfoService;
import com.ruoyi.equip.service.IProbeDataService;
import com.ruoyi.td.entity.DevicePropertyLogQueryBo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.Date;
import java.util.List;
@RestController
@RequestMapping("/equip/alarm")
@Api(tags = "告警相关接口")
public class ProbeDataController extends BaseController {

    @Autowired
    private IProbeDataService probeDataService;



    @ApiOperation("查询告警数据")
    @GetMapping("/list")
    public  TableDataInfo list(ProbeDataVo probeDataVo)
    {
        startPage();
        List<ProbeDataVo> dataList =
                probeDataService.alarmData(probeDataVo);
        return getDataTable(dataList);
    }

}
